package org.dtrd.modules.record.entity.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 健康记录时段请求
 *
 * @author 萧
 * @date:2021-10-03 7:15 下午
 **/
@Data
@ApiModel(value = "健康记录时段请求")
public class PeriodRequest {

    @NotNull
    @Min(value = 1)
    private Integer patientId;

    @ApiModelProperty(value = "开始时间", example = "yyyy-MM-dd")
    private String startTime;

    @NotBlank
    @ApiModelProperty(value = "结束时间", example = "yyyy-MM-dd")
    private String endTime;

    @ApiModelProperty(value = "页码", example = "1")
    private Integer pageNo;

    @ApiModelProperty(value = "每页条数", example = "10")
    private Integer pageSize;

}
